import axios from '@/utils/axios'
import moment from "moment";

export function getRulePage(params) {
  return axios({
    url: '/ScoreRule/page',
    method: 'get',
    data: params
  })
}

export function updatetRule(params) {
  return axios({
    url: '/ScoreRule/update',
    method: 'post',
    data: params
  })
}

export function deletetRule(params) {
  return axios({
    url: '/ScoreRule/delete',
    method: 'post',
    data: params
  })
}

export function addRule(params) {
  return axios({
    url: '/ScoreRule/add',
    method: 'post',
    data: params
  })
}

export function getRulelist(params) {
  return axios({
    url: '/ScoreRule/getRulelist',
    method: 'post',
    data: params
  })
}

export function addAssessor(params) {
  return axios({
    url: '/ScoreRule/addAssessor',
    method: 'post',
    data: params
  })
}

export function getPositionScoreList(params) {
  return axios({
    url: '/ScoreRule/getPositionScoreList',
    method: 'post',
    data: params
  })
}

export function getPositionScoreAssessorList(params) {
  return axios({
    url: '/ScoreRule/getPositionScoreAssessorList',
    method: 'post',
    data: params
  })
}

export function getOneScoreAssessorList(params) {
  return axios({
    url: '/ScoreRule/getOneScoreAssessorList',
    method: 'post',
    data: params
  })
}

export function updateAssessor(params) {
  return axios({
    url: '/ScoreRule/updateAssessor',
    method: 'post',
    data: params
  })
}

export function removeAssessor(params) {
  return axios({
    url: '/ScoreRule/removeAssessor',
    method: 'post',
    data: params
  })
}

export function copy(params) {
  return axios({
    url: '/ScoreRule/copy',
    method: 'post',
    data: params
  })
}

export function getScorePastPage(params) {
  return axios({
    url: '/ScoreRule/scorePastPage',
    method: 'get',
    data: params
  })
}

export function getScorePastSearch(params) {
  return axios({
    url: '/ScoreRule/pastSearch',
    method: 'get',
    data: params
  })
}
